<div ng-controller="basicregion as gt">
	<section class="content-header">
		<h1>
			{{title}}<small></small>
		</h1>
	</section>
	<section class="content">
		<div class="box box-default">
			<div class="col-md-12">
				<div class="box-body">
					<alertdanger></alertdanger>
					<alertsuccess></alertsuccess>
					<form role="form">
						<div class="box-body">
							<div class="form-group">
								<label><input type="radio" ng-model="type" ng-value="0" class="flat-red" ng-checked="true"> 省</label>
								<label><input type="radio" ng-model="type" ng-value="1" class="flat-red"> 市</label>
								<label><input type="radio" ng-model="type" ng-value="3" class="flat-red"> 区</label>
								<label><input type="radio" ng-model="type" ng-value="4" class="flat-red"> 街道</label>
							</div>

							<div ng-show="shengfenshow" class="form-group" ng-init="findallshengfen();">
								<label>选择省份</label> <select ng-change="changeshenfen();"
															  ng-model="shengfenallx"
															  ng-options="gs.name for gs in shengfenall"
															  class="form-control select2" style="width: 100%;">
								<option ng－value="-1">--请选择--</option>
								</select>
							</div>
							<div ng-show="shishow" class="form-group">
								<label>选择市</label> <select
									ng-model="shiallx"
									ng-options="gs.name for gs in shiall"
									class="form-control select2" style="width: 100%;">
								<option ng－value="-1">--请选择--</option>
							</select>
							</div>
							<div ng-show="qushow" class="form-group">
								<label>选择区</label> <select
									ng-model="quallx"
									ng-options="gs.name for gs in quall"
									class="form-control select2" style="width: 100%;">
								<option ng－value="-1">--请选择--</option>
							</select>
							</div>


							<div class="form-group">
								<label> <input type="radio" ng-model="status"
									ng-value="1" class="flat-red" ng-checked="true"> 启用
								</label> <label> <input type="radio" ng-model="status"
									ng-value="0" class="flat-red"> 禁用
								</label>

							</div>

							<div class="form-group">
								<button class="btn btn-block btn-default"
									ng-click="addgtparams();">添加区域</button>
							</div>
							<div class="col-md-3" ng-repeat="gt in gtparams">
								<div class="alert alert-info alert-dismissable">
									<button ng-click="remove($index)" type="button" class="close"
										data-dismiss="alert" aria-hidden="true">&times;</button>
									<h4>
										<i class="icon fa fa-info"></i>
									</h4>
									<div class="form-group">
										<label>区域名称</label> <input maxlength="20"
											ng-model="gt.name" class="form-control" type="text"
											placeholder="请输入区域名称">
									</div>

								</div>
							</div>
						</div>
						<div class="box-footer">
							<button ng-show="savebtn.show" type="button"
								class="btn btn-primary" ng-click="save();">保存</button>
							<button ng-show="updatebtn.show" type="button"
								class="btn btn-primary" ng-click="update();">更新</button>
						</div>
					</form>
				</div>
			</div>
			<div class="box-footer"></div>
		</div>
	</section>
</div>